package com.txby.pf.modules.sys.entity;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;

import com.txby.pf.common.validator.group.AddGroup;
import com.txby.pf.common.validator.group.UpdateGroup;

/**
 * 医护人员
 *@author duke
 *@date 2017年9月18日
 */
public class SysDctNrsEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	/**
	 * 用户ID
	 */
	private Long id;

	/**
	 * 用户名
	 */
	@NotBlank(message="用户名不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String name;

	/**
	 * 密码
	 */
	@NotBlank(message="密码不能为空", groups = AddGroup.class)
	private String password;

	/**
	 * 手机号
	 */
	@NotBlank(message="手机号不能为空", groups = {AddGroup.class, UpdateGroup.class})
	@Pattern(regexp="\\d{11}",groups = {AddGroup.class, UpdateGroup.class},message="手机号应该11数字")
	private String mobile;

	/**
	 * 状态  0：禁用   1：正常
	 */
	private Integer status;
	
	/**
	 * 创建者
	 */
	private Long creater;

	
	/**
	 * 更新者
	 */
	private Long updater;
	
	/**
	 * 创建时间
	 */
	private Date createTime;
	
	/**
	 * 更新时间
	 */
	private Date updateTime;


	/**
	 * 部门ID
	 */
	@NotBlank(message="部门ID不能为空", groups = AddGroup.class)
	private String deptId;

	/**
	 * 部门ID
	 */
	@NotBlank(message="cardNO不能为空", groups = AddGroup.class)
	private String cardNO;
	
	/**
	 * 部门ID
	 */
	@NotBlank(message="身份证号不能为空", groups = AddGroup.class)
	private String ICNO;
	
	/**
	 * 部门ID
	 */
	@NotBlank(message="工作号不能为空", groups = AddGroup.class)
	private String jobNO;
	
	/**
	 * type
	 */
	private String type;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getCreater() {
		return creater;
	}

	public void setCreater(Long creater) {
		this.creater = creater;
	}

	public Long getUpdater() {
		return updater;
	}

	public void setUpdater(Long updater) {
		this.updater = updater;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getCardNO() {
		return cardNO;
	}

	public void setCardNO(String cardNO) {
		this.cardNO = cardNO;
	}

	public String getICNO() {
		return ICNO;
	}

	public void setICNO(String iCNO) {
		ICNO = iCNO;
	}

	public String getJobNO() {
		return jobNO;
	}

	public void setJobNO(String jobNO) {
		this.jobNO = jobNO;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

/*	public static void update(SysDctNrsEntity dctnrs) {
		// TODO Auto-generated method stub
		
	}

	public static void save(SysDctNrsEntity dctnrs) {
		// TODO Auto-generated method stub
		
	}*/
	
}
